package com.taijihuabao.modules.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.taijihuabao.common.commonutils.LongToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import org.springframework.stereotype.Component;

/**
 * 用户管理
 *
 * @author xue
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("用户管理实体类")
@Component
public class UserEntity extends BaseEntity {

    /**
     * 用户主键
     */
    @ApiModelProperty(value = "用户主键")
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long id;

    /**
     * 用户账号
     */
    @ApiModelProperty(value = "用户账号")
    private String username;

    /**
     * 用户密码
     */
    @ApiModelProperty(value = "用户密码")
    private String password;

    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户昵称")
    private String name;

    /**
     * 用户性别
     */
    @ApiModelProperty(value = "用户性别")
    private Long sex;

    /**
     * 手机号码
     */
    @ApiModelProperty(value = "手机号码")
    private Long phoneNumber;

    /**
     * 用户邮箱
     */
    @ApiModelProperty(value = "用户邮箱")
    private String userEmail;

    /**
     * 用户头像
     */
    @ApiModelProperty(value = "用户头像")
    private String userProfile;

}
